<?php

class indexController extends Zend_Controller_Action {

    public function init() {
        $ajaxContext = $this->_helper->getHelper('AjaxContext');

        $ajaxContext->addActionContext('list', 'html')
                //->addActionContext('modify', 'html')
                ->initContext();
    }

    public function indexAction() {

        //$auth = Zend_Auth::getInstance();
        //echo $auth->getStorage()->read()->role;
        //Zend_Debug::dump($auth);
    }

    public function listAction() {
        // pretend this is a sophisticated database query
        $data = array('red', 'green', 'blue', 'yellow');
        $this->view->data = $data;
    }

}

